﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Wiki.MyKnowledge" %>
<asp:Literal ID="lTages" Text="20" runat="server" Visible="false"/>
<asp:Literal ID="lFriends" Text="5" runat="server" Visible="false"/>
<asp:Literal ID="lLCount" Text="20" runat="server" Visible="false"/>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("WK144")%></h1>
							</div>
							<div class="submenuN_button"><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a href="/knowledge/edit.htm" class="Naddbtn btnspec" style="text-decoration:none"><%}else{ %><a href="#" onclick="NotAffirm()" class="Naddbtn btnspec" style="text-decoration:none"><%} %><span><%=GetText("WK004")%></span></a></div>
						</div>
					</div>
				</div>
				<div>
					<ul class="sort_sel">
						<li class="<%=(ShowType.ToLower() == "m"?"selATags":"unselATags") %> first" style="float: left"><span><a href="/knowledge/MyKnowledge-1-M-A.htm"><%=GetText("WK144")%></a></span></li>
						<li class="<%=(ShowType.ToLower() == "f"?"selATags":"unselATags") %>" style="float: left"><span><a href="/knowledge/MyKnowledge-1-F-A.htm"><%=GetText("WK145")%></a></span></li>
					</ul>
					<div class="clear"></div>
				</div>
				<div class="Center9001n">
					<div class="center9001right">
						<div class="Center9001Content">
							<div class="knowedge_area">
								<div>
									<div class="floatl">
										<%if (Flag.ToLower() == "a")
										  {%>
										<strong><%=GetText("WK131")%></strong>
										<%}
										  else
										  { %>
										<a href="/knowledge/myKnowledge-1-<%=ShowType%>-A.htm"><%=GetText("WK131")%></a>
										<%} %>
										|
										<%if (Flag.ToLower() == "w")
										  {%>
										<strong><%=GetText("WK053")%></strong>
										<%}
										  else
										  { %>
										<a href="/knowledge/myKnowledge-1-<%=ShowType%>-W.htm"><%=GetText("WK053")%></a>
										<%} %>
										|
										<%if (Flag.ToLower() == "c")
										  {%>
										<strong><%=GetText("WK054")%></strong>
										<%}
										  else
										  { %>
										<a href="/knowledge/myKnowledge-1-<%=ShowType%>-C.htm"><%=GetText("WK054")%></a>
										<%} %>
									</div>
									<div class="floatr"><%=RecordCount%> <%=GetText("WK017")%></div>
									<div class="clear"></div>
								</div>
								<div class="margin20T">
										<ul class="wiki_list">
											<asp:Repeater ID="rptL" runat="server" EnableViewState="false">
												<ItemTemplate>
													<li><span class="text14"><a href="/knowledge/<%#(((Model.WWW_WWW.Wiki.PageType)Eval("Type"))==Model.WWW_WWW.Wiki.PageType.Wiki?"wiki":"contribution")%>-<%#HttpUtility.UrlEncode(Eval("Name").ToString())%>.htm"><%#Lx.Web.Common.UI.Globals.GetString(Eval("Title").ToString(),80)%></a></span> <span class="grey10"><%#FormatDiffDate(GetText("C0036"), Eval("DiffDate").ToString())%></span></li>
												</ItemTemplate>
											</asp:Repeater>
											<%if (rptL.Items.Count == 0)
											  {%>
											<li><%=GetText("WK005")%></li>
											<%} %>
										</ul>
								</div>
								<div class="page_num">
									<%=CreatePageNav(RecordCount, int.Parse(lLCount.Text), PageIndex,
									 "",string.Format("<span class='page_none grey10'><a href='/knowledge/myknowledge-$I$-{0}-{1}.htm'>{2}</a></span>&nbsp;", ShowType, Flag, HttpUtility.UrlEncode(GetText("Prev"))),
									 "",string.Format("<span class='page_none grey10'><a href='/knowledge/myknowledge-$I$-{0}-{1}.htm'>{2}</a></span>&nbsp;", ShowType, Flag,HttpUtility.UrlEncode(GetText("Next"))),
									 string.Format("<span class='page_select'>{0}</span>&nbsp;",PageIndex),
									 string.Format("<span class='page_none grey10'><a href='/knowledge/myknowledge-$I$-{0}-{1}.htm'>$I$</a></span>&nbsp;", ShowType, Flag))%>
								</div>
							</div>
						</div>
					</div>
					<div class="center9001left">
						<asp:PlaceHolder ID="plhM" runat="server">
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("WK145")%></h4>
								<div class="layer_contentA5">
									<!--data loop started-->
									<asp:Repeater ID="rptFriends" runat="server">
										<ItemTemplate>
											<div class="right_know_list">
												<div class="right_know_listPIC"><div class="picsp"><a class="photo_sp" href="/<%#Eval("Creator") %>.htm" title="<%#HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) %>"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" border=\"0\"/>" : Eval("Avatar", "<img src=\"{0}\" border=\"0\"/>").ToString()%></a></div></div>
												<div class="right_know_listCON"><a href="/knowledge/<%#(((Model.WWW_WWW.Wiki.PageType)Eval("Type"))==Model.WWW_WWW.Wiki.PageType.Wiki?"wiki":"contribution")%>-<%#HttpUtility.UrlEncode(Eval("Name").ToString())%>.htm"><%#Lx.Web.Common.UI.Globals.GetString(HttpUtility.HtmlEncode(Eval("Title").ToString()), 80)%></a></div>
												<div class="clear"></div>
											</div>
										</ItemTemplate>
									</asp:Repeater>
									<%if (rptFriends.Items.Count == 0){%>
									<span class="grey12"><%=GetText("WK005")%></span>
									<%} %>
									<!--data loop end-->
									<p align="right"><a href="/knowledge/MyKnowledge-1-F-A.htm"><%=GetText("WK146")%></a></p>
								</div>
							</div>
						</div>
						</asp:PlaceHolder>
						<!--friend panel started-->
						<asp:PlaceHolder ID="plhF" runat="server">
							<div class="right_layerA">
								<div class="layer_contentA">
									<h4><%=GetText("C2001")%></h4>
									<div class="margin5">
										<ul class="tag_common_right">
											<asp:Repeater ID="rptTags" runat="server">
												<ItemTemplate>
													<li><a href='/knowledge/<%#HttpUtility.UrlEncode(Eval("Name","selecttags-1---{0}.htm"))%>'><%#HttpUtility.HtmlEncode(Eval("Name").ToString())%></a></li>
												</ItemTemplate>
											</asp:Repeater>
											<%if (rptTags.Items.Count == 0){%>
											<li><%=GetText("WK005")%></li>
											<%} %>
										</ul>
										<div class="clear"></div>
									</div>
									<p align="right"><a href="/knowledge/allContributions.htm"><%=GetText("WK151")%></a></p>
								</div>
							</div>
						</asp:PlaceHolder>
						<!--friend panel end-->
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>